<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="format-detection" content="telephone=no,email=no,address=no">
    <meta name="renderer" content="webkit">
    <title>星辰大海吊装租赁</title>
    <!--    <link type="text/css" href="//2.ss.faisys.com/css/rcss/base.min.css?v=202006191021" rel="stylesheet" />-->
    <link rel="stylesheet" href="../css/userpage.css">
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-datetimepicker.min.css">
    <style type="text/css">
        ul#nav {
            width: 100%;
            height: 100px;
            margin: 10px auto
        }

        ul#nav li {
            display: inline;
            height: 60px
        }

        ul#nav li a {
            display: inline-block;
            padding: 0 40px;
            height: 60px;
            line-height: 60px;
            color: #FFF;
            font-family: "\5FAE\8F6F\96C5\9ED1";
            font-size: 16px
        }

        ul#nav li a:hover {
            background: #080808
        }
        .card{
            border-radius: 18%;
        }
        .thumbnail{
            background-color: #F0F3F4  ;
        }
    </style>
    <script src="../jquery/jquery-3.4.1.min.js"></script>
    <script src="../js/userjs/jquery.flexslider-min.js"></script>
    <script src="../bootstrap/js/bootstrap3.min.js"></script>
    <script src="../js/moment-with-locales.js"></script>
    <script src="../bootstrap/js/bootstrap-datetimepicker.min.js"></script>
</head>
<body style="background-color: #121212;">
<div class="modal fade" id="myOrderModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    订单</h4>
            </div>
            <div class="modal-body" id="deleteDialogMsg">
                <div class="form-horizontal">
                    <div class="form-group">
                        <label class="col-md-3 control-label">订单编号</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" id="cl_id"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">车牌号</label>
                        <div class="col-md-9">
                            <select class="form-control" id="cl_num">

                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">驾驶员</label>
                        <div class="col-md-9">
                            <select class="form-control" id="cl_name">
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">出车时间</label>
                        <div class="col-md-9">
                            <div class="input-group date">
                                <input type='text' class="form-control" id="cl_outtime" />
                                <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">使用单位</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" id="cl_company" readonly/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">使用天数</label>
                        <div class="col-md-8">
                            <input type="number" class="form-control" id="cl_days" placeholder="请输入预计使用天数"/>
                        </div>
                        <h4>天</h4>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">单价</label>
                        <div class="col-md-9">
                            <select class="form-control" id="single" disabled="disabled">

                            </select>
                        </div>

                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">油耗</label>
                        <div class="col-md-8">
                            <select class="form-control" id="cl_oilmoney">
                                <option>200</option>
                            </select>
                        </div>
                        <h4> /天</h4>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">总价</label>
                        <div class="col-md-7">
                            <input type="text" class="form-control" id="cl_price" readonly/>
                        </div>
                        <div class="col-md-2">
                            <button type="button" class="btn btn-success" id="usemoney">查询</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
                <button type="button" class="btn btn-primary" id="orderbtn">
                    下单
                </button>
            </div>
        </div>
    </div>
</div>



<!-- 菜单栏 -->
<div class="row" style="margin-bottom: -50px;" id="menu">
    <div class="col-md-8">
        <ul id="nav">
            <li><a href="#">首页</a></li>
            <li><a href="/contact">关于我们</a></li>
            <li><a id="orderPage">我的订单</a></li>
        </ul>
    </div>
    <div class="col-md-4" style="margin-top: 20px">
        <span class="text-right f20 text-64" id="judgeLogin"></span>
    </div>

</div>
<!-- 视频 -->
<div class="row">
    <div id='jz_banner' class='jz_banner jz_show_flv '>
        <div class='banner_flv'>
            <div class='banner_flv_background'><video id='jz_banner_flv' playsinline muted='muted' loop='loop' autoplay='autoplay'
                                                      class='banner_flv_bg'>
                <source type='video/mp4' src='//19284515.s61i.faiusr.com/58/AD0Io4SZCRA6GAAgwqTU5gUooMvOkAQ.mp4'></video></div>
            <div class='banner_flv_area'>
                <div class='banner_module_zone'>
                    <div class='jz_web_row_line jz_web_row_line_pc1 '>
                        <div id='row101' class='jz_web_row jz_web_row1 jz_web_row_mobi1 jz_section_row'>
                            <div class='jz_web_row__content '>
                                <div class='jz_web_col jz_web_col0' _index=0>
                                    <div class='web_col_content'>
                                        <div id='module301' class='form jz_module   jz_module_style_7'>
                                            <div class='module_wrap'>
                                                <div class='module_content ' align="center">
                                                    <div class='module_image_content ' style="width: 500px;height: 250px;margin-top: 180px;"> <img src='../images/吊车.png' alt=''/></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 服务范围 -->
<div class='jz_web_row_line jz_web_row_line_pc1 ' style="margin-top: 40px;">
    <div class='fk-editor'>
        <div style="text-align: center; line-height: 35px;">
            <font face="思源黑体 CN Light, 微软雅黑" style="font-size: 30px; color: rgb(204, 204, 204);">服务范围</font>
            <font face="思源黑体 CN Light, 微软雅黑"><span style="font-size: 30px;">
						</span></font>
        </div>
        <div style="text-align: center; line-height: 35px;">
            <font face="思源黑体 CN Light, 微软雅黑" style=""><span style="font-size: 16px;"><span style="color: rgb(76, 76, 76);">不同层面的吊装解决方案</span></span></font>
        </div>
    </div>
    <div class="container" style="margin-top: 40px;">
        <div class="row">
            <div class="col-md-3">
                <div class="card" style="width: 25rem;">
                    <div class="thumbnail" style="height: 400px;width: 260px">
                        <img class="card-img-top files" alt="haha">
                        <div class="card-body" align="center">
                            <h4 class="card-title"><strong>QY8T</strong></h4>
                            <p class="card-text">
                            <p>最大起升高度：23.35 m</p>
                            <p>最大额定起重量：8000 KG</p>
                            <p>发动机功率：105 KW起/落幅时间： s</p>
                            <p>最长主臂长度：17.55 m</p>
                            </p>
                            <button type="button" class="btn btn-default btn-sm" id="fuTian18">预约</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="card" style="width: 25rem;">
                    <div class="thumbnail" style="height: 400px;width: 260px">
                        <img class="card-img-top files" alt="haha">
                        <div class="card-body" align="center">
                            <h4 class="card-title"><strong>QY12T</strong></h4>
                            <p class="card-text">
                            <p>最大额定起重量: 12 t</p>
                            <p>最大额定起重力矩: 410 KN.m</p>
                            <p>最大起重量: 45 t</p>
                            <p>起重臂长度-全伸臂: 21 m</p>
                            </p>
                            <button type="button" class="btn btn-default btn-sm" id="shanQi18">预约</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="card" style="width: 25rem;">
                    <div class="thumbnail" style="height: 400px;width: 260px">
                        <img  class="card-img-top files" alt="haha">
                        <div class="card-body" align="center">
                            <h4 class="card-title"><strong>QY16T</strong></h4>
                            <p class="card-text">
                            <p>最大额定起重量：16 t</p>
                            <p>最大起升高度-基本臂：24.5 m</p>
                            <p>额定功率：170/2400 kw/rpm</p>
                            <p>主卷扬最大起升速度：100 m/min</p>
                            </p>
                            <button type="button" class="btn btn-default btn-sm" id="DongFeng18">预约</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="card" style="width: 25rem;">
                    <div class="thumbnail" style="height: 400px;width: 260px">
                        <img class="card-img-top files" alt="haha">
                        <div class="card-body" align="center">
                            <h4 class="card-title"><strong>QY25T</strong></h4>
                            <p class="card-text">
                            <p>最大额定起重量：25 t</p>
                            <p>最高行驶速度：70 km/h</p>
                            <p>主卷扬最大起升速度：130m/min</p>
                            <p>支腿跨距：纵向×横向：6×5.1米</p>
                            </p>
                            <button type="button" class="btn btn-default btn-sm" id="dongFengJiaYun16">预约</button>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>


<!-- 案例展示 -->
<div class='jz_web_row_line jz_web_row_line_pc1 ' style="margin-top: 50px;background-image: url('../images/44.png')">
    <div id='row189' class='jz_web_row jz_web_row3 jz_web_row_mobi2 jz_module_row'>
        <div class='jz_web_row__content '>
            <div class='jz_web_col jz_web_col0 jz_col_4' _index=0>
                <div class='web_col_content'>
                    <div id='module332' class='form jz_module   jz_module_style_6'>
                        <div class='fk-editor'>
                            <div style="margin-top: 200px;">
                                <font color="#969696" face="思源黑体 CN Light, 微软雅黑"><span style="font-size: 12px;">P R E S E N T A T I O N</span></font><span
                                    style="font-size: 12px;"><br></span>
                            </div>
                            <div style="">
                                <font face="思源黑体 CN Light, 微软雅黑" style=""><span style="font-size: 36px;"><span style="color: rgb(203, 203, 203);">案例展示</span><span
                                        style="color: rgb(150, 150, 150);"><br></span></span></font>
                            </div>
                            <div></div>
                            <div></div>
                        </div>
                    </div>

                    <!--<div id='module334' class='form jz_module   jz_module_style_8' style="margin-top: 350px; margin-right: 50px;">
                        <div class='module_wrap'>
                            <div class='module_content ' ><a target="" rel="" data-server-rendered="true" id="334" projectid="334" class="module_button_content module_content_detail jz_hover jz_theme_border_hover_color jz_theme_font_hover_color module_button_style3"><span
                                    class="module_button_text">VIEW MORE ></span> <span class="after"></span></a>
                            </div>
                        </div>
                    </div>-->
                </div>
            </div>

            <!-- 图 -->
            <!-- 第一列 -->
            <div class='jz_web_col jz_web_col1 jz_col_4' _index=1>
                <div class='web_col_content'>
                    <div id='module324' class='form jz_module   jz_module_style_7'>
                        <div class='module_wrap'>
                            <div class='module_content '>
                                <div class='module_image_content ' style="margin-top: 30px;margin-right: 10px;"> <img src='../images/nowone.png'
                                                                                                                      alt='	' class='jz_img_lazyload ' /></div>
                            </div>
                            <div class='fk-editor' style="margin-top: 20px;">
                                <div style=""><span style="font-size: 14px;"><span style="color: rgb(87, 87, 87); font-size: 13px;">
														<font face="思源黑体 CN Light, 微软雅黑" style="font-size: 14px;">吊车正在施工现场施工</font>
													</span><span style="color: rgb(178, 178, 178);"><br></span></span></div>
                                <div></div>
                                <div></div>
                            </div>

                        </div>
                    </div>
                    <div class='form jz_module   jz_module_style_7'>
                        <div class='module_wrap'>
                            <div class='module_content '>
                                <div class='module_image_content ' style="margin-top: 40px;margin-right: 10px;"> <img src='../images/nowtwo.png' alt='	' class='jz_img_lazyload ' /></div>
                            </div>
                            <div class='fk-editor' style="margin: 20px;">
                                <div style="">
                                    <font color="#575757" face="思源黑体 CN Light, 微软雅黑"><span style="font-size: 14px;">吊车正在施工现场施工</span></font>
                                    <font color="#b2b2b2"><span style="font-size: 14px;"><br></span></font>
                                </div>
                                <div></div>
                                <div></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 第二列 -->
            <div class='jz_web_col jz_web_col2 jz_col_4' _index=2>
                <div class='web_col_content'>
                    <div class='form jz_module   jz_module_style_7'>
                        <div class='module_wrap'>
                            <div class='module_content '>
                                <div class='module_image_content ' style="margin-top: 30px;margin-right: 10px;"> <img src='../images/nowthree.png'
                                                                                                                      alt='	' class='jz_img_lazyload ' /></div>
                            </div>
                            <div class='fk-editor' style="margin: 20px;">
                                <div style="">
                                    <font color="#575757" face="思源黑体 CN Light, 微软雅黑"><span style="font-size: 14px;">吊车正在施工现场施工</span></font>
                                    <font color="#b2b2b2"><span style="font-size: 14px;"><br></span></font>
                                </div>
                                <div></div>
                                <div></div>
                            </div>
                        </div>
                    </div>
                    <div id='module326' class='form jz_module   jz_module_style_7'>
                        <div class='module_wrap'>
                            <div class='module_content '>
                                <div class='module_image_content ' style="margin-top: 40px;margin-left: 10px;"> <img src='../images/nowfour.png'
                                                                                                                     alt='	' class='jz_img_lazyload ' /></div>
                            </div>
                            <div class='fk-editor' style="margin: 20px;">
                                <div style="">
                                    <font color="#575757" face="思源黑体 CN Light, 微软雅黑"><span style="font-size: 14px;">吊车正在施工现场施工</span></font>
                                    <font color="#b2b2b2"><span style="font-size: 14px;"><br></span></font>
                                </div>
                                <div></div>
                                <div></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="container" style="margin-top: 40px;">
    <div class="row">
        <div class="col-md-3">
            <div class="card" style="width: 25rem;">
                <div class="thumbnail" style="height: 400px;width: 260px">
                    <img class="card-img-top files" alt="haha">
                    <div class="card-body" align="center">
                        <h4 class="card-title"><strong>QY50T</strong></h4>
                        <p class="card-text">
                        <p>最大额定总起重量：50 t </p>
                        <p>最长主臂最大起重力矩: 1050 kN.m </p>
                        <p>主臂最大起升高度: 43.6 m</p>
                        <p>单绳最大速度（主卷扬）:120 m/min</p>
                        </p>
                        <button type="button" class="btn btn-default btn-sm" id="kaiMa16">预约</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="card" style="width: 25rem;">
                <div class="thumbnail" style="height: 400px;width: 260px">
                    <img class="card-img-top files" alt="haha">
                    <div class="card-body" align="center">
                        <h4 class="card-title"><strong>QY75T</strong></h4>
                        <p class="card-text">
                        <p>最大额定起重量：75 t</p>
                        <p>最大起升高度-全伸臂：47 m</p>
                        <p>底盘发动机型号：D10.38A-40</p>
                        <p>额定功率：276/2200 kw/rpm</p>
                        </p>
                        <button type="button" class="btn btn-default btn-sm" id="dongFeng16">预约</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="card" style="width: 25rem;">
                <div class="thumbnail" style="height: 400px;width: 260px">
                    <img class="card-img-top files" alt="haha">
                    <div class="card-body" align="center">
                        <h4 class="card-title"><strong>QY100T</strong></h4>
                        <p class="card-text">
                        <p>最大额定起重量: 100 t</p>
                        <p>最大起升高度-全伸臂: 53 m</p>
                        <p>最大起重量: 91-180 t</p>
                        <p>整机全长: 16.0 m</p>
                        </p>
                        <button type="button" class="btn btn-default btn-sm" id="kaiMa12">预约</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="card" style="width: 25rem;">
                <div class="thumbnail" style="height: 400px;width: 260px">
                    <img class="card-img-top files" alt="haha">
                    <div class="card-body" align="center">
                        <h4 class="card-title"><strong>QY150T</strong></h4>
                        <p class="card-text">
                        <p>最大额定起重量：150 t</p>
                        <p>最大起升高度-全伸臂：60 m</p>
                        <p>额定功率：390/1800 kw/rpm</p>
                        <p>主卷扬最大起升速度：110 m/min</p>
                        </p>
                        <button type="button" class="btn btn-default btn-sm" id="kaiMa">预约</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 更好未来图 -->
<div style="background-image: url('../images/55.png');margin-top: 50px;height: 400px;">
    <div style="text-align: center; font-size: 58px; line-height: 55px;">
        <p align="center" style="padding-top: 150px">
            <font face="思源黑体 CN Medium, 微软雅黑"><b style="color: rgb(150, 150, 150);">视觉</b><b style="color: rgb(239, 239, 239);">探索
                追求</b><b style="color: rgb(150, 150, 150);">更好未来</b></font>
        </p>

        <font face="思源黑体 CN Light, 微软雅黑">
            <font color="#969696"><span style="font-size: 14px;margin-left: 100px;">邮箱：1404225646@.com 电话：130000000 地址 : XX省XX市XX路</span></font>
        </font>
        <div class='module_wrap'>
            <div class='module_content ' style='margin-left: 580px; width: 200px;height: 32px'><a target="" rel="" data-server-rendered="true" id="338" projectid="338" class="module_button_content module_content_detail jz_hover jz_theme_border_hover_color jz_theme_font_hover_color module_button_style3"><span
                    class="module_button_text" style="color: #cecece;font-size: 18px;" >我们一直在前行</span> <span class="after"></span></a>
            </div>
        </div>
    </div>
</div>


<!-- 尾部 -->

<div id="gridFooter" class="jz_web_footer g_footer" style="background-color: #121212;margin-top: 20px;margin-bottom: 20px;">
    <div class='jz_web_row_line jz_web_row_line_pc1 '>
        <div id='row4' class='jz_web_row jz_web_row1 jz_web_row_mobi1 jz_section_row'>
            <div class='jz_web_row__content '>
                <div class='jz_web_col jz_web_col0' _index=0>
                    <div class='web_col_content'>
                        <div class='s_footer'>
                            <p class='s_footer_copyright'>©2020 星辰大海-吊装租赁 版权所有</p>
                            <p><span class='s_footer_support'>本站使用<a href='' target='_blank' class='s_footer_anchor jz_hover jz_theme_font_hover_color'><i
                                    class='s_footer_support_icon faisco-icons-S000101'></i>星辰大海</a>搭建</span><span class='s_footer_spance'>|</span><a
                                    href='/login' target='_blank' class='s_footer_anchor jz_hover jz_theme_font_hover_color'
                                    id='adminHref'>管理登录</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
    $(function () {

        e("<a  class=\"btn btn-link\" href=\"/login\" role=\"button\" style=\"border-style: none;margin-left: 100px;font-size: 18px;color: #cecece;font-weight: 500\">登录</a>\n" +
            "            <a class=\"btn btn-link\" href=\"/registered\" role=\"button\" style=\"border-style: none;font-size: 18px;color: #cecece;font-weight: 500\">注册</a>")

        function e (a){
            var n = $("#judgeLogin");
            var str =window.sessionStorage.getItem("username");
            if (str != null){
                var username = str;
                console.log(username);
                n.append(" <a class='btn btn-link' id='userbtn' href='/userInfo' style='font-size: 15px; border-style: none;color: #cecece;font-weight: 500' >"+username+"</a><a  class='btn btn-link' href='/logout' id='logoutbtn' style='border-style: none;color: #cecece;font-weight: 500' >退出</a>")
            }  else{
                n.append(a);
            }
        };
        $("#menu").mouseover(function () {
            $("#userbtn").removeClass("hidden");
            $("#logoutbtn").removeClass("hidden")
        });
        $("#menu").mouseout(function () {
            $("#userbtn").addClass("hidden");
            $("#logoutbtn").addClass("hidden")
        });

        function lo (){
            var str =window.sessionStorage.getItem("username");
            return str
        }
        $("#cl_outtime").datetimepicker({
            format:'yyyy-mm-dd hh:ii',
            local:moment.locale('zh-cn'),
            startDate:"2000-01-01 00:00",
            endDate:"2050-01-01 00:00"

        });
        getModelId();
        function getModelId() {
            $.ajax({
                url: "carinfo/getModelId",
                type: "get",
                dataType: "json",
                success:function (result) {
                    console.log(result)
                    for (var i=0;i<result.length;i++){
                        model_id = result[i].model_id;
                        getInfo(model_id);
                    }
                }
            })
        }
        function getInfo(ModelId){
            $.ajax({
                url: "carinfo/getImage",
                type: "post",
                dataType: "json",
                async:false,
                data:{
                    model_id:ModelId
                },
                success:function (result) {
                    var image = result.object.images;
                    var description = result.object.description;
                    $(".files").eq(ModelId-1).attr("src",image)
                        .attr("width","240px")
                        .attr("height","180px");
                }
            })
        }
        $("#orderPage").click(function () {
            if (lo() != null){
                $(location).attr("href","order")
            }else {
                $(location).attr("href","login")
            }

        });
        $("#userPage").click(function () {
            $(location).attr("href","userPage")
        });
        $("#kaiMa").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll8",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });
            }else {
                $(location).attr("href","login")
            }


        });

        $("#kaiMa12").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll7",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });
            }else {
                $(location).attr("href","login")
            }


        });

        $("#dongFeng16").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll6",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });

            }else {
                $(location).attr("href","login")
            }

        });

        $("#kaiMa16").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll5",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });
            }else {
                $(location).attr("href","login")
            }


        });
        $("#dongFengJiaYun16").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll4",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });

            }else {
                $(location).attr("href","login")
            }

        });



        $("#DongFeng18").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll3",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });

            }else {
                $(location).attr("href","login")
            }

        });


        $("#shanQi18").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll2",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });
            }else {
                $(location).attr("href","login")
            }


        });
        $("#order").click(function(){
            $(location).attr("href","/pages/order.html");
        });
        $("#fuTian18").click(function(){
            if (lo()!=null){
                $("#myOrderModal").modal("show");
                $("#cl_company").val(lo());
                var html="";
                var html3="";
                $.ajax({
                    url: "/carinfo/selectAll1",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html+="<option value='"+list[i].c_num+"'>"+list[i].c_num+"</option>"
                            }
                            for (var i=0;i<list.length;i++){
                                html3+="<option>"+list[i].c_money+"</option>"
                            }
                        }
                    }
                });

                $("#cl_num").html(html);
                $("#single").html(html3);

                var html1="";
                $.ajax({
                    url: "/staff/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html1+="<option value='"+list[i].s_name+"'>"+list[i].s_name+"</option>"
                            }
                        }
                        $("#cl_name").html(html1);
                    }
                });

                var html2="";
                $.ajax({
                    url: "/carState/selectAll",
                    type: "get",
                    dataType: "json",
                    async: false,//设置为同步方法
                    success: function (result) {
                        if (result.errorCode == 0) {
                            var list = result.objectList;
                            for(var i = 0;i<list.length;i++){
                                html2+="<option value='"+list[i].clstate_id+"'>"+list[i].clstate_name+"</option>"
                            }
                        }
                        $("#cl_state").html(html2);
                    }
                });
            }else {
                $(location).attr("href","login")
            }


        });
        $("#usemoney").click(function(){
            var money2=$("#cl_oilmoney").val()*$("#cl_days").val();
            var money1=$("#single").val()*$("#cl_days").val();
            var money=money1*1+money2*1;
            $("#cl_price").val(money);
            alert("您的订单预计消费"+money+"元"+",若继续使用则点击下单，否则取消！")
        });


        $("#orderbtn").click(function(){
            $.ajax({
                url:"/carlogs/insertCarLog",
                type:"post",
                dataType:"json",
                data:{
                    cl_id:$("#cl_id").val(),
                    cl_num:$("#cl_num").val(),
                    cl_name:$("#cl_name").val(),
                    cl_outtime:$("#cl_outtime").val(),
                    cl_company:$("#cl_company").val(),
                    cl_days:$("#cl_days").val(),
                    cl_price:$("#cl_price").val(),
                    cl_state:$("#cl_state").val(),
                    cl_oilmoney:$("#cl_oilmoney").val(),
                    cl_des:$("#cl_des").val()
                },
                success:function(result){
                    if(result.errorCode==0){
                        /*  alert("下单成功，已为您预约！");*/
                        $("#myOrderModal").modal("hide");
                        cl_id:$("#cl_id").val("");
                        cl_num:$("#cl_num").val("");
                        cl_name:$("#cl_name").val("");
                        cl_outtime:$("#cl_outtime").val("");
                        cl_company:$("#cl_company").val("");
                        cl_days:$("#cl_days").val("");
                        cl_price:$("#cl_price").val("");
                        cl_state:$("#cl_state").val("");
                        cl_oilmoney:$("#cl_oilmoney").val("");
                        cl_des:$("#cl_des").val("");
                    }
                }
            });
            $.ajax({
                url:"/staff/updateStaff",
                type:"post",
                dataType:"json",
                data:{
                    s_name:$("#cl_name").val(),
                },
                success:function(result){
                    if(result.errorCode==0){
                        alert("下单成功，已为您预约！");
                        /*  $("#myOrderModal").modal("hide");*/

                    }
                }
            });
        });
    });


</script>
</body>
</html>